﻿using Microsoft.SharePoint;

namespace SPContrib.SharePoint.Extensions
{
    /// <summary>
    /// Extensions for the  SPContentType class
    /// </summary>
    public static class SPContentTypeExtensions
    {
        /// <summary>
        /// Indicates if the content type belongs to a list or not
        /// </summary>
        public static bool IsListContentType(this SPContentType instance)
        {
            return instance.ParentList != null;
        }
    }
}
